a11y atspi: add null checks in table iface methods
authorDebian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>
Sat, 28 Feb 2026 17:55:04 +0000 (20:55 +0300)
committerDmitry Shachnev <mitya57@debian.org>
Sat, 28 Feb 2026 17:55:04 +0000 (20:55 +0300)
commit429f4b1b82d2d1ac016f51d07417113ea7e829c2
treead9cea816f94f8a7b81b66bd3f4f8b1c904be7db
parent23063c372033c27380109fd5993ca8053050d691
a11y atspi: add null checks in table iface methods

Origin: upstream, https://invent.kde.org/qt/qt/qtbase/-/commit/076da096464a5d3f
Last-Update: 2025-03-24
Bug: https://bugs.debian.org/1081682

Add null checks to cover the cases where QAccessibleTableInterface::cellAt
returns nullptr (which happens e.g. when called with invalid indices via
AT-SPI) or where the cell object doesn't implement the
QAccessibleTableCellInterface, which would previously result in crashes.

Cherry-picked into 5.15 as it fixes a crash in popular accessibility client
software. Conflict resolution: remove C++17'isms (`if` with initializer).

Gbp-Pq: Name a11y_null_checks.diff
src/platformsupport/linuxaccessibility/atspiadaptor.cpp